//
//  SPXQButtonView.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/30.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "SPXQButtonView.h"

@implementation SPXQButtonView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _imgView=[[UIImageView alloc]initWithFrame:CGRectMake(8, 5, 20, 20)];
        [self addSubview:_imgView];
        _title=[[UILabel alloc]initWithFrame:CGRectMake(5, 30, self.mj_w, 13)];
        _title.font=[UIFont systemFontOfSize:13];
        [self addSubview:_title];
        
        _button=[UIButton buttonWithType:UIButtonTypeCustom];
        _button.frame=self.bounds;
        [self addSubview:_button];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
